import request from '@/utils/request'
export function list(params) {
  return request({
    url: '/admin/company/list',
    method: 'get',
    params: params
  })
}
export function save(data) {
  return request({
    url:'/admin/company/save',
    method: 'post',
    data:data
  })
}
export function saveAddMember(params, data) {
  return request({
    url: '/admin/company/saveAddMember',
    method: 'post',
    params: params,
    data: data
  })
}
export function updateMember(params, data) {
  return request({
    url: '/admin/company/updateMember',
    method: 'post',
    params: params,
    data: data
  })
}
export function find(id) {
  return request({
    url:'/admin/company/find/'+id,
    method: 'get',
  })
}

export function update(data) {
  return request({
    url: '/admin/company/update',
    method: 'post',
    data: data
  })
}

export function del(ids) {
  return request({
    url: '/admin/company/del/' + ids,
    method: 'post'
  })
}
export function categoryList() {
  return request({
    url:'admin/companyCategory/list',
    method:'get',
  })
}
export function employeeList(params) {
  return request({
    url:'admin/member/getCompanyAllMember',
    method:'get',
    params: params
  })
}
export function restoreCompany(data) {
    return request({
      url:'/admin/company/restoreCompany',
      method:'post',
      data: data
    })
  }
